<div class="goods_list">
    {{#each goods}}
    <m_goods_item href="#default/goods_details?id={{_id}}" src="{{preview_img_url}}?imageView/1/w/100/h/100" name="{{goods_name}}" price="{{price}}" sale_num="{{sale_num}}" num="{{num
}}"></m_goods_item>
    {{/each}}
</div>

<xmp type="tag" name="m_goods_item">
    <a href="${href}">
        <div class="goods_item">
            <div class="goodsimg">
                <img src="${src}" />
            </div>
            <div class="goodsinfo">
                <div class="infoitem">
                    <span class="name">${name}</span>
                </div>
                <div class="infoitem">
                    <span class="price">￥${price}</span>
                </div>
                <div class="infoitem">
                    <span class="num">销量:${sale_num}，库存:${num}</span>
                </div>
            </div>
        </div>
    </a>
</xmp>
